package ve.usb.crm.hibernate;



public class Usuario implements java.io.Serializable, ve.usb.cohesion.runtime.Auditable {

    /** Creates a new instance of Usuario */
    public Usuario() {}



    /**
     * Holds value of property id.
     */
    private Long id;

    /**
     * Getter for property id.
     * @return Value of property id.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * Holds value of property idUsuario.
     */
    private long idUsuario;

    /**
     * Getter for property idUsuario.
     * @return Value of property idUsuario.
     */
    public long getIdUsuario() {
        return this.idUsuario;
    }

    /**
     * Setter for property idUsuario.
     * @param idUsuario New value of property idUsuario.
     */
    public void setIdUsuario(long idUsuario) {
        this.id = this.idUsuario = idUsuario;
    }

    /**
     * Holds value of property alias.
     */
    private String alias = "";

    /**
     * Getter for property alias.
     * @return Value of property alias.
     */
    public String getAlias() {
        return this.alias;
    }

    /**
     * Setter for property alias.
     * @param alias New value of property alias.
     */
    public void setAlias(String alias) {
        this.alias = alias;
    }

    /**
     * Holds value of property clave.
     */
    private String clave = "";

    /**
     * Getter for property clave.
     * @return Value of property clave.
     */
    public String getClave() {
        return this.clave;
    }

    /**
     * Setter for property clave.
     * @param clave New value of property clave.
     */
    public void setClave(String clave) {
        this.clave = clave;
    }

    /**
     * Holds value of property rol.
     */
    private Categoria rol;

    /**
     * Getter for property rol.
     * @return Value of property rol.
     */
    public Categoria getRol() {
        return this.rol;
    }

    /**
     * Setter for property rol.
     * @param rol New value of property rol.
     */
    public void setRol(Categoria rol) {
        this.rol = rol;
    }

    private Categoria theme;

    public Categoria getTheme() {
        return theme;
    }

    public void setTheme(Categoria theme) {
        this.theme = theme;
    }

    public String toString() {
        return "<Usuario id='C" + this.id +
      //idUsuario
      "\" alias =\"" + alias +
      "\" clave =\"" + clave +
        ((rol==null) ? "" : "\" rol =\"C" + rol.getId()) +
        ((theme==null) ? "" : "\" theme =\"C" + theme.getId()) +

        "'/>";
    }

}